<?php

namespace app\admin\service;

/**
 * 服务基类
 * 提供通用的服务方法和依赖管理
 */
abstract class BaseService
{
    /**
     * 获取AuthService实例
     * @return AuthService
     */
    protected function getAuthService()
    {
        static $authService = null;
        if ($authService === null) {
            $authService = new AuthService();
        }
        return $authService;
    }

    /**
     * 获取AvatarService实例
     * @return AvatarService
     */
    protected function getAvatarService()
    {
        static $avatarService = null;
        if ($avatarService === null) {
            $avatarService = new AvatarService();
        }
        return $avatarService;
    }
}
